# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-trufflehogregexes
pkgver=0.0.7
pkgrel=9
pkgdesc='These regexes power truffleHog.'
url='https://pypi.org/project/truffleHogRegexes/#files'
arch=('any')
license=('GPL')
depends=('python')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/truffleHogRegexes-$pkgver.tar.gz")
sha512sums=('ff3112f93469d6ee1bb1851261eb3d1f2794cc352598df2e426b011864e84e37f20e053e4f72325ed6a61dd2ff78d7148d6c399489663f4af290f9140a1cf7d9')

build() {
  cd "truffleHogRegexes-$pkgver"

  python setup.py build
}

package() {
  cd "truffleHogRegexes-$pkgver"

  python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 \
    --skip-build
}

